package cn.stylefeng.guns.modular.system.service;

import cn.stylefeng.guns.modular.system.entity.Modify;
import cn.stylefeng.guns.modular.system.mapper.ModifyMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * <p>
 * 查看车辆维修记录service
 * </p>
 *
 * @author stylefeng
 * @since 2018-12-07
 */
@Service
public class ModifyService extends ServiceImpl<ModifyMapper, Modify> {

    @Autowired
    private ModifyMapper modifyMapper;

    /**
     * 将数据保存并且返回出刚保存的id
     * @param modify
     * @return
     */
    public void insertAndGetId(Modify modify) {
        modifyMapper.insertAndGetId(modify);
    }
}
